export default {
    regPhone: function (rule, value, callback, source) {
        let reg = /^1[0-9]{10}$/;
        if (!reg.test(value)) {
            callback(new Error('请输入正确的手机'));
        } else {
            callback();
        }
    },
    isNotEmpty: function (value) {
        return !(value == null || value == '' || value == undefined || value<=0 || value.length<=0);
    }
};
